]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
extension-tool: Always print extension location after its creation
authorLeleat <atule@pm.me>
Fri, 21 May 2021 21:55:28 +0000 (23:55 +0200)
committerMarge Bot <marge-bot@gnome.org>
Tue, 25 May 2021 18:30:25 +0000 (18:30 +0000)
The extension location was only printed, if there was no handler for
the newly created extension. This is confusing for new extension
developers. So always print the extension location.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2515.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1856>

subprojects/extensions-tool/src/command-create.c

index 64b38824aa0c5be925fcc027ab6c8cbb1f84d7a9..420fb27a28b6e030b605cbcdfa3f8f029fb80093 100644 (file)
@@ -217,13 +217,13 @@ launch_extension_source (GFile *dir, GError **error)
 
   main_source = g_file_get_child (dir, "extension.js");
   handler = g_file_query_default_handler (main_source, NULL, NULL);
+
+  /* Translators: a file path to an extension directory */
+  g_print (_("The new extension was successfully created in %s.\n"),
+            g_file_peek_path (dir));
+
   if (handler == NULL)
-    {
-      /* Translators: a file path to an extension directory */
-      g_print (_("The new extension was successfully created in %s.\n"),
-               g_file_peek_path (dir));
       return TRUE;
-    }
 
   l.data = main_source;
   l.next = l.prev = NULL;